-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PATCH: Fix/search in components (#321)
* add elementLabelKey to BIMDataDropdownList component * fix DropdownList documentation * fix search for object * fix search for object in BIMDataSelectMulti component * refactoring
- Loading branch information
Showing
8 changed files
with
192 additions
and
94 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
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,5 @@ | ||
/* eslint-disable */ | ||
export default [ | ||
["Event name", "Description"], | ||
["element-click", "Use this event to get the clicked element data"], | ||
]; |
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,21 @@ | ||
const stringElements = [ | ||
"element 1", | ||
"element 2", | ||
"element 3", | ||
"element 4", | ||
"element 5", | ||
"element 6", | ||
"element 7", | ||
"element 8", | ||
]; | ||
|
||
const objectElements = [ | ||
{ id: 0, label: "element 1", value: "v1" }, | ||
{ id: 1, label: "element 2", value: "v2" }, | ||
{ id: 2, label: "element 3", value: "v3" }, | ||
{ id: 3, label: "element 4", value: "v4" }, | ||
{ id: 4, label: "element 5", value: "v5" }, | ||
{ id: 5, label: "element 6", value: "v6" }, | ||
]; | ||
|
||
export { stringElements, objectElements }; |
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,57 @@ | ||
/* eslint-disable */ | ||
export default [ | ||
["Props", "Type", "Default value", "Validator", "Description"], | ||
["list", "Array", "() => []", "", ""], | ||
[ | ||
"perPage", | ||
"Number", | ||
"10", | ||
"", | ||
"Use this props to choose the number of elements per page, before displaying the pagination.", | ||
], | ||
["elementKey", "String", "", "", ""], | ||
[ | ||
"elementLabelKey", | ||
"String", | ||
"null", | ||
"", | ||
"Only use this props if the 'list' props is an array of objects. Specify which field of the object represent the option label.", | ||
], | ||
["disabled", "Boolean", "false", "", ""], | ||
[ | ||
"transitionName", | ||
"String", | ||
"'up'", | ||
"'up' or 'down' values", | ||
"Use this props to choose the opening transition of the submenu", | ||
], | ||
[ | ||
"directionClass", | ||
"String", | ||
"'down'", | ||
"'up', 'down', 'right' or 'left' values", | ||
"Use this props to choose the opening of the submenu.", | ||
], | ||
["loading", "Boolean", "false", "", "Use this props to display a loader."], | ||
[ | ||
"closeOnElementClick", | ||
"Boolean", | ||
"false", | ||
"", | ||
"Use this props to close the dropdown submenu when clicking on the item.", | ||
], | ||
[ | ||
"width", | ||
"String", | ||
"220px", | ||
"", | ||
"Use this props to custom width of BIMDataDropdownList component.", | ||
], | ||
[ | ||
"height", | ||
"String", | ||
"36px", | ||
"", | ||
"Use this props to custom height of BIMDataDropdownList component.", | ||
], | ||
]; |
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,10 @@ | ||
/* eslint-disable */ | ||
export default [ | ||
["Slot name", "Description"], | ||
["header", "Use this slot for add content before the icon button"], | ||
[ | ||
"contentAfterBtn", | ||
"Use this slot for add content after the icon button", | ||
], | ||
["element", "Use this slot to custum the elements list"], | ||
]; |