fix: changed cap default to fix ux issue on js toggle (#10424)
* fix: changed cap default to fix ux issue on js toggle * fix: hard check on capSide hide * fix: always show capSide if dynamic capType * docs: label, help text update * fix: remove hidden condition
This commit is contained in:
parent
cd02572374
commit
b52ec44966
|
|
@ -149,15 +149,15 @@ class DividerWidget extends BaseWidget<DividerWidgetProps, WidgetState> {
|
||||||
params: {
|
params: {
|
||||||
allowedValues: ["nc", "arrow", "dot"],
|
allowedValues: ["nc", "arrow", "dot"],
|
||||||
required: true,
|
required: true,
|
||||||
default: "arrow",
|
default: "nc",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
helpText:
|
helpText:
|
||||||
"Controls hide/show divider cap on start or end of divider",
|
"Changes the position of the cap if a valid cap is selected.",
|
||||||
propertyName: "capSide",
|
propertyName: "capSide",
|
||||||
label: "",
|
label: "Cap Position",
|
||||||
controlType: "ICON_TABS",
|
controlType: "ICON_TABS",
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
|
@ -177,8 +177,6 @@ class DividerWidget extends BaseWidget<DividerWidgetProps, WidgetState> {
|
||||||
defaultValue: "0",
|
defaultValue: "0",
|
||||||
isBindProperty: false,
|
isBindProperty: false,
|
||||||
isTriggerProperty: false,
|
isTriggerProperty: false,
|
||||||
hidden: (props: DividerWidgetProps) => props.capType === "nc",
|
|
||||||
dependencies: ["capType"],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user