layout: docs title: Online Editor description: Online Editor Explanation. group: online-editor redirect_from:
This page explains how to use our Online Editor.
The Online Editor should be used for each issue and pull request!
The login is quite easy, just press the Sign in with GitHub button on the top right and login via GitHub.
Our online editor was designed to create easy examples/demos for the bootstrap-table.
The page is structured as follows:
We have 5 buttons:
https://live.bootstrap-table.com/code/<username>/<ID>.From GitHub src you can set a branch that will be used for the example. For Issues, you normally always use From Released CDN.You can write your examples. Including HTML, CSS and JavaScript (css and javascript needs a <style></style> and/or <script></script> tag!
The basic template is:
<!-- Includes custom css and js files -->
<link rel="stylesheet" href="https://example.com/custom.css">
<script src="https://example.com/custom.js"></script>
<!-- Define custom style -->
<style>
</style>
<!-- No need to write <html> and <body> tags -->
<table id="table">
</table>
<script>
$(function () {
$('#table').bootstrapTable()
})
</script>
Note: You need to put the initialization function in $(function () {}) to ensure that jquery and bootstrap-table have been loaded.
You can see your running example (after pressing on the Run button).
You can also click the Result (Fullscreen) to toggle the fullscreen of the running example.
Each issue should contain an example (created on the Online Editor) of the problem.
(Maybe you also can use our Load Examples button to load an existing example, instead of point 2 and 3).
The workflow for PR's is quite similar to the workflow for Issues.
The only difference is that you have to choose your branch (The editor will use your code to create the example). For that, you have to open the Libraries page, select From GitHub src on the Bootstrap Table source option and write your branch name in the GitHub src branch input.
The syntax for the branch name is <username>:<branch>. You also can copy that string from the pull request page.
