Skip to content

Instantly share code, notes, and snippets.

@scriptnull
Created June 28, 2015 05:25
Show Gist options
  • Select an option

  • Save scriptnull/a08cc8308e68d5ee4c9e to your computer and use it in GitHub Desktop.

Select an option

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/ )
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