```
~~~
<div class="col-xs-12 col-sm-8">
<dl class="fieldlist" data-template="basictpl2" data-name="row[settings]">
<dd >
<ins style="color: red">{:__('设置抽奖标题和概率')}</ins>
</dd>
<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
<!--请注意 dd和textarea间不能存在其它任何元~素,实际开发中textarea应该添加个hidden进行隐藏-->
<textarea style="display: none;" name="row[settings]" class="form-control" cols="30" rows="5">{$row.settings}</textarea>
</dl>
<script id="basictpl2" type="text/html">
<dd class="form-inline">
<ins >{:__('抽奖标题:')}</ins>
<ins><input type="text" style="width: 200px" name="<%=name%>[<%=index%>][num]" class="form-control" value="<%=row.num%>" placeholder="数量"/></ins>
<ins >{:__('概率:')}</ins>
<ins><input type="text" style="width: 200px" name="<%=name%>[<%=index%>][scort]" class="form-control" value="<%=row.scort%>" placeholder="积分"/></ins>
<!--下面的两个按钮务必保留-->
<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
</dd>
</script>
</div>
~~~
```
### 效果
![](https://img.kancloud.cn/7f/9e/7f9e59a5777723bc40b313160d38629a_597x297.png)
### Table.api.formatter.toggle //渲染成开关