8000 suggest : v-show · Issue #77 · nativescript-vue/nativescript-vue · GitHub
[go: up one dir, main page]

Skip to content
suggest : v-show #77
Closed
Closed
@blackss2

Description

@blackss2

As I know, v-if is not working properly.
So I made this custom v-show with simple directive.
only problem it has is sub components' conditions are evaluated.

Vue.directive('show', {
	inserted: function (el, attr) {
		el.setAttribute("visibility", attr.value ? "visible" : "collapsed");
	},
	update: function (el, attr) {
		el.setAttribute("visibility", attr.value ? "visible" : "collapsed");
	}
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0