Created
June 28, 2015 05:25
-
-
Save scriptnull/a08cc8308e68d5ee4c9e to your computer and use it in GitHub Desktop.
This is a snippet that supplements scriptnull.github.io/foreachline. Usage: variable = value ; will be converted to a Bootstrap Table JS Object. ( http://bootstrap-table.wenzhixin.net.cn/ )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var variableName = line.split('=')[0].trim(); | |
| line =JSON.stringify({ field: variableName , title: variableName, align: 'center', valign: 'bottom', sortable: true, visible: true }) + ',' ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment