Web Component: j-InputTags
j-InputTags
- jComponent
v19|v20
Configuration:
required
{Boolean}
optional, enables "required" (default:false
)icon
{String}
optional, icon for label e.g.home
,cog
, etc.licon
{String}
optional, left icon e.g.home
,cog
, etc.liconclick
{String}
optional, a path to methodfunction(component, input)
ricon
{String}
optional, right icon e.g.home
,cog
, etc.riconclick
{String}
optional, a path to methodfunction(component, input)
label
{String}
optional, a label (default is HTML content)after
{String}
optional, it means a char after label (default::
)placeholder
{String}
optional, adds aplaceholder
text into the inputvalidate
{String}
optional, a condition for validating of value, can contain a link tofunction(value)
or!!value.match(/[a-z]+/)
disabled
{Boolean}
optional, disables this componenterror
{String}
optional, adds astring
text under the componentspaces
{Boolean}
optional, enables spaces otherwise it removes them (default:true
)innerlabel
{Boolean}
optional, enables inner label (default:true
)dirsource
{String}
optional, path to a data-source or NEW can contain a link to methodfunction(search, next(items_arr))
dircustom
{String/Boolean}
optional, can contain a path tofunction(val, next(new_val))
or can beBoolean
. This option can enable adding a custom value (value not defined in data-source)dirrender
{String}
optional, a path tofunction(item, text)
(must return HTML forj-Directory
), this function can affect list of items inj-Directory
dirminwidth
{Number}
optional, a minimum width forj-Directory
, default:200
dirmaxwidth
{Number}
optional, a maximum width forj-Directory
dirplaceholder
{String}
optional, a placeholder forj-Directory
dirempty
{String}
optional, adds an empty field forj-Directory
dirkey
{String}
optional, a key name for reading oftext
indirsource
(default:name
)dirvalue
{String}
optional, a key name for reading ofvalue
indirsource
(default:id
)autosource
{String}
a path tosearch
function inautocomplete
,function(search, render(arr))
autovalue
{String}
a property path for the value inautosource
transform
{Number}
optional, transforms the text0 - none, 1 - lowercase, 2 - uppercase, 3 - capitalize
(Default:0
)enteronly
{Boolean}
optional, appends a new value afterenter
key is pressed (default:true
)
Interesting:
dirsource:path.to.datasource
needsdirectory
component- if
licon
orricon
starts with!
then the component render a raw value instead oficon
dirsource
with paths to methods can load data asynchronously
Author
- Peter Širka petersirka@gmail.com
- License
Created
10. february 2019
Updated
19. july 2024
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com