1.5.3 • Published 11 months ago

vldom-default-directives v1.5.3

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

default directives for vldom

provides basic directives for vldom projects

Usage: Call registerDirectives(Component, router) in your apps main, before using router.host(...).

Then use the directives in your components:

<ui-button ui-click={() => console.log("clicked!")}>
    Click Me!
</ui-button>

<input $ui-value={this.somevariable} ui-change={() => console.log("set:", this.somevariable)}></input>

Directives

ui-click: Sets onclick handler and calls value when the element is clicked ui-focus: Attaches to onfocus and calls value when the element is focused

ui-href: Uses component.navigate to navigate relative to the current component. Will open native links too, if the route is not found ui-href-target="blank": Opens the ui-href links in a new tab/window ui-href-active: Sets ui-active attribute on page navigation (hashchange)

$ui-value: Gets/Sets variable based on input/textarea value. ui-value: Defines a object value for a <option> in a <select>. ui-change: Will be called when an inputs value changes (only when $ui-value is used)

id: Sets the elements id. Will set test property of your component to this element if you use .test as the ids value. (Deprecated, use {this.test = <ui-test></ui-test>} instead)

1.5.3

11 months ago

1.5.2

11 months ago

1.5.1

1 year ago

1.4.2

1 year ago

1.5.0

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.2.6

2 years ago

1.2.5

2 years ago

1.3.3

2 years ago

1.2.4

2 years ago

1.3.2

2 years ago

1.2.3

2 years ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago