-
Notifications
You must be signed in to change notification settings - Fork 816
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* work for #5178 Set the same width values to input fields when titleLocation is left * work for #8396 add unit tests * work for #8396 - calculate title width * work for #5178 Set the same width values to input fields when titleLocation is left * work for #5178 Set the same width values to input fields when titleLocation is left * work for #5178 Set the same width values to input fields when titleLocation is left * work for #5178 Set the same width values to input fields when titleLocation is left * work for #5178 fix unit tests * work for #5178 fix layoutColumns serialization * work for #5178 add a property with the actual value colSpan * work for #5178 fix reactivity * work for #5178 fix bugs * work for #5178 fix question style after added second question into row * work for #5178 fix panel width * work for #5178 fix markup tests * work for #5178 calculate colSpan if question invisible * work for #5178 rename isGridLayoutMode -> gridLayoutEnabled --------- Co-authored-by: OlgaLarina <[email protected]>
- Loading branch information
1 parent
094f0e5
commit d30f80f
Showing
20 changed files
with
1,264 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { property, Serializer } from "./jsonobject"; | ||
import { Base } from "./base"; | ||
|
||
export class PanelLayoutColumnModel extends Base { | ||
@property() width: number; | ||
@property({ | ||
onSet: (newValue, target, prevVal) => { | ||
if (newValue !== prevVal) { | ||
target.width = newValue; | ||
} | ||
} | ||
}) effectiveWidth: number; | ||
@property() questionTitleWidth: string; | ||
|
||
constructor(width?: number, questionTitleWidth?: string) { | ||
super(); | ||
this.effectiveWidth = width; | ||
this.questionTitleWidth = questionTitleWidth; | ||
} | ||
|
||
public getType(): string { | ||
return "panellayoutcolumn"; | ||
} | ||
public isEmpty(): boolean { | ||
return !this.width && !this.questionTitleWidth; | ||
} | ||
} | ||
|
||
Serializer.addClass("panellayoutcolumn", | ||
[ | ||
{ name: "effectiveWidth:number", isSerializable: false, minValue: 0 }, | ||
{ name: "width:number", visible: false }, | ||
"questionTitleWidth", | ||
], | ||
(value: any) => new PanelLayoutColumnModel() | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.