Directive definition
registerDirective({ attribute: (attr: Attr) => attr.nodeName.startsWith('*autoSelect') && attr.parentElement.localName === 'input', process: ({targetNode} => { targetNode.addEventListener('focus', () => targetNode.select()); }) })
Parser function or attribute exact name for detecting if an attribute should be processed as a directive
When attribute function returns a truthy value this function is called to process or initiate the directive actions
attribute
Generated using TypeDoc
Directive definition
registerDirective({ attribute: (attr: Attr) => attr.nodeName.startsWith('*autoSelect') && attr.parentElement.localName === 'input', process: ({targetNode} => { targetNode.addEventListener('focus', () => targetNode.select()); }) })