0.0.1 • Published 5 years ago

@appsrhino/select v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Appsrhino Select Component

How to install?

npm install @appsrhino/select --save

How to use?

1 -> Import Module

import { SelectModule } from '@appsrhino/select';

@NgModule({
  ...,
  imports: [
    ...
    SelectModule
  ]
})

2 -> Use Select

<appsrhino-select></appsrhino-select>

Available options

[options] => array of object to display in list
[textKey] => key of the object which you want to use to display as option
[selectedText] = default selected text
[primaryMain] -> theme main color
[primaryDark] -> theme dark color
[primaryLight] -> theme light color
[disabled] => boolean
[props] => any extra args
[styles] => custom styles (css format)
[variant] => button variant ('contained' | 'outlined')
(chooseOption) => ({}) => return the html event and props ({event,props, option})