x-editable教程
来源:互联网 发布:unity3d开发 编辑:程序博客网 时间:2024/05/29 18:44
http://www.cnblogs.com/landeanfen/p/5821192.html
http://vitalets.github.io/x-editable/docs.html#editable
http://vitalets.github.io/x-editable/demo-bs3.html?c=popup
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="bootstrap_table/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap_table/css/bootstrap-table.min.css">
<link rel="stylesheet" href="bootstrap_table/css/bootstrap-editable.css">
<!--<link rel="stylesheet" href="bootstrap_table/css/bootstrap-table.css">-->
<script src="bootstrap_table/js/jquery.min.js"></script>
<script src="bootstrap_table/js/bootstrap.min.js"></script>
<script src="bootstrap_table/js/bootstrap-table.min.js"></script>
<script src="bootstrap_table/js/bootstrap-editable.js"></script>
<script src="bootstrap_table/js/bootstrap-table-editable.js"></script>
<!--<script src="bootstrap_table/js/bootstrap-table.js"></script>-->
<!--<script src="bootstrap_table/js/bootstrap-table-zh-CN.min.js"></script>-->
<meta charset="UTF-8">
<title></title>
<style>
.test {
background-color: red;
width: 50px;
height: 20px;
}
#test {
background-color: red;
width: 20px;
height: 20px;
}
</style>
</head>
<body>
<div>
<button type="button" class="btn btn-default" id="btn-action">按钮</button>
</div>
<table id="table">
</table>
<a href="#" id="username">用户名</a>
<input type="text" value="test" class="test"/>
</body>
<script>
$(function() {
$('#username').editable({
type: "text", //编辑框的类型。支持text|textarea|select|date|checklist等
// title: "用户名", //编辑框的标题
disabled: false, //是否禁用编辑
emptytext: "空文本", //空值的默认文本
mode: "inline", //编辑框的模式:支持popup和inline两种模式,默认是popup
placement:'bottom',
validate: function(value) { //字段验证
if(!$.trim(value)) {
return '不能为空';
}
}
});
});
</script>
</html>
- x-editable教程
- x-editable
- x-editable href问题
- Editable
- bootstrap x-editable单元格点击事件
- bootstrapTable行内编辑----X-editable组件
- bootstrap--table,select2及x-editable的使用小结
- x-editable在angular中亲身使用小结
- 关于在线编辑,点击即可编辑失去焦点即可保存的插件X-editable
- beego结合bootstrap table和x-editable用于merit价值和成果管理系统
- JS组件系列——BootstrapTable 行内编辑解决方案:x-editable
- JS组件系列——BootstrapTable 行内编辑解决方案:x-editable
- JS组件系列——BootstrapTable 行内编辑解决方案:x-editable
- JS组件系列——BootstrapTable 行内编辑解决方案:x-editable
- x-editable使用小结——用于网页文本即时编辑
- JS组件系列——BootstrapTable 行内编辑解决方案:x-editable
- JS组件系列——BootstrapTable 行内编辑解决方案:x-editable
- bootstrap table x-editable select2——带图标的选择
- 杂谈
- 人脸技术概述
- 深入解析Android Design包——NestedScroll
- [雅礼集训6-23] T1 电报
- 遗传算法模拟解决TSP问题
- x-editable教程
- 【0041】SQL函数之标量函数(Scalar)
- MySQL字符串函数substring:字符串截取
- Git:分支的创建、合并、管理和删除
- Http和Https的区别?
- Hibernate 学习目录
- 移动端多指事件
- 【数据结构 七】---字符串
- Excel VBA高效办公应用-第十四章-Excel图书管理系统