javascript - Polymer 1.0 Dom-if check with attribute -
i want show template according attribute passed in element.
say
<template> <template is="dom-if" if="[[!multiline]]"> .. </template> <template is="dom-if" if="[[multiline]]"> .. </template> </template> in properties pass
properties:{ multiline: { type: boolean, value: false } } and in html can pass multi-line attribute. how can achieve this? going in first one.
if add multi-line attribute in element outside of dom-bind template, evaluate true, regardless of value passed, though can set false not adding attribute @ on element or setting falsy value in js.
Comments
Post a Comment