我试图使在Ajax的形式元素的多纸张输入聚合物,使用在AJAX型纸张输入多行属性
#info {
width: 90%;
height: 300px;
background-color: white;
padding: 10px;
margin: 20px auto;
}
paper-input {
width: 100%;
height: 150px;
}
<div id="info">
<form is="ajax-form" action="../../../back/saveIMG.php" class="picturePost" method="post" enctype="multipart/form-data">
<file-input camera name="pic" id="pic">
<core-icon-button
icon="image:camera-alt">
</core-icon-button>
</file-input>
<br/>
<paper-input multiline id="last" floatingLabel label="Commentaire" ></paper-input>
<!-- -->
<br/>
<input type="submit" name="submitInfo">
</form>
</div>
所以我添加一些属性像maxRows="5"
和rows="3"
但我的纸张输入始终是单行区域。
这个元素将被弃用,所以我搜索解决这个属性错误。 – momolechat
你从哪里得到这些信息?浏览Polymer 0.8 alpha版本库,我注意到paper-input-decorator是[导入到初始0.8版本库](https://github.com/Polymer/paper-input/tree/0.8-initial-port)。我怀疑他们会删除这样一个有用的功能 –
此外,浏览[当前文档](https://github.com/Polymer/paper-input/blob/master/paper-input.html)我发现多行属性不受支持。也许它是在聚合物的旧版本,但它肯定不是在0.5 –