1.16.0 • Published 2 months ago

@forter/select v1.16.0

Weekly downloads
27
License
Apache-2.0
Repository
github
Last release
2 months ago

fc-select

An element to select values from a list

npm.io npm.io npm.io npm.io npm.io npm.io

Usage

<script>
   import '@forter/select';
</script>

<fc-select list='["-","foo","bar","zoo","loo","doo","ree","mee","faa","sol","la"]'>
</fc-select>

Examples

<!-- slot and value -->
<fc-select value="coolDog">
   <option value="coolDog">My Cool Dog Properties</option>
   <option value="coolCat">My Cool Cat Properties</option>
   <option value="elseValue">Else text</option>
</fc-select>

Properties

PropertyAttributeTypeDefaultDescription
activateany
clearany
closeany
deactivateany
disableddisabledbooleanfalseIf the element is disabled
dropdownignoreoverflowclippingdropdownignoreoverflowclippingbooleanfalseIf the element should ignore hiding rules such as overflow: hidden on the parent.
extendedextended"" \| "width: auto"
flatflatbooleanfalseWhether the input had no depth or border
invalidinvalidbooleanWhether the input is invalid
itemany
labellabelstring
listliststringThe element text for no data scenario. example: ['foo','bar']
loadingloadingbooleanfalseIf the button is loading
onOptionHoverany
optionTextany
pathstringPre-Defined size
placeholderplaceholderstring"Select"
requiredrequiredbooleanIf the element is required
searchany
selectany
supportSecondLineOptionsupportSecondLineOptionbooleanfalseIf fc-select should support 2 lines of single option, instead of tooltip
typingany
updatePositionany
validvalidbooleanWhether the input is valid
valuevaluestringSelected value. example: foo
warningwarningstring

Events

EventDescription
activateexecute when activate a value
clearexecute when clear list.
closeexecute when close list.
deactivateexecute when activate a value
searchexecute when searching value
selectexecute when select value from list
typingexecute when typing

Slots

NameDescription
alltitle at top of the list. example: <option value="coolDog">My Cool Dog Properties</option><option value="coolCat">My Cool Cat Properties</option><option value="elseValue">Else text</option>

CSS Custom Properties

PropertyDescription
--fc-select-background-colorbackground
--fc-select-border-colorborder-color
--fc-select-border-radiusborder-radius
--fc-select-box-shadowbox-shadow
--fc-select-colorcolor
--fc-select-cursorcursor
--fc-select-disabled-colordisabled color. example: gray
--fc-select-font-familyfont-family
--fc-select-font-sizefont-size
--fc-select-font-weightfont-weight
--fc-select-outlineoutline
--fc-select-paddingpadding
1.16.0

2 months ago

1.15.0

2 months ago

1.14.8

1 year ago

1.14.7

1 year ago

1.14.1

2 years ago

1.14.0

2 years ago

1.12.0

2 years ago

1.14.5

1 year ago

1.14.4

1 year ago

1.14.3

1 year ago

1.14.2

1 year ago

1.14.6

1 year ago

1.11.0

2 years ago

1.13.0

2 years ago

1.10.1

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.6

2 years ago

1.10.0

2 years ago

1.7.5

2 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.10

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago