欢迎来到天天文库
浏览记录
ID:13090350
大小:42.45 KB
页数:9页
时间:2018-07-20
《bootstrap_table_document》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、TableoptionsEditonGitHubThetableoptionsaredefinedin jQuery.fn.bootstrapTable.defaults. NameAttributeTypeDefaultDescription-data-toggleString'table'ActivatebootstraptablewithoutwritingJavaScript.classesdata-classesString'tabletable-hover'Theclassnameoftable.Bydefault,thetableis
2、bordered,youcanadd'table-no-bordered'toremovetable-borderedstyle.heightdata-heightNumberundefinedTheheightoftable.undefinedTextdata-undefined-textString'-'Definesthedefaultundefinedtext.stripeddata-stripedBooleanfalseTruetostripetherows.sortNamedata-sort-nameStringundefinedDef
3、ineswhichcolumncanbesorted.sortOrderdata-sort-orderString'asc'Definesthecolumnsortorder,canonlybe'asc'or'desc'.iconsPrefixdata-icons-prefixString'glyphicon'Definesiconsetname('glyphicon'or'fa'forFontAwesome).Bydefault'glyphicon'isused.iconsdata-iconsObject{ paginationSwitchDo
4、wn:'glyphicon-collapse-downicon-chevron-down', paginationSwitchUp:'glyphicon-collapse-upicon-chevron-up', refresh: 'glyphicon-refreshicon-refresh', toggle: 'glyphicon-list-alticon-list-alt', columns: 'glyphicon-thicon-th', detailOpen: 'glyphicon-plusicon-plus', detailClo
5、se:'glyphicon-minusicon-minus'}Definesiconsusedinthetoolbar,pagination,anddetailsview.columns-Array[]Thetablecolumnsconfigobject,seecolumnpropertiesformoredetails.data-Array[]Thedatatobeloaded.ajaxdata-ajaxFunctionundefinedAmethodtoreplaceajaxcall.ShouldimplementthesameAPIasjQ
6、ueryajaxmethodmethoddata-methodString'get'Themethodtypetorequestremotedata.urldata-urlStringundefinedAURLtorequestdatafromremotesite.cachedata-cacheBooleantrueFalsetodisablecachingofAJAXrequests.contentTypedata-content-typeString'application/json'ThecontentTypeofrequestremoted
7、ata.dataTypedata-data-typeString'json'Thetypeofdatathatyouareexpectingbackfromtheserver.ajaxOptionsdata-ajax-optionsObject{}Additionaloptionsforsubmitajaxrequest.Listofvalues: http://api.jquery.com/jQuery.ajax.queryParamsdata-query-paramsFunctionfunction(params){returnparams;}
8、Whenrequestingremotedata,youcansendadditionalparametersbymodi
此文档下载收益归作者所有
点击更多查看相关文章~~