Skip to content

Commit

Permalink
tables: add example code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchunlin committed May 6, 2022
1 parent 3defc6b commit 97b4e98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions uliweb_apijson/tables/templates/Tables/inc/table_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@
</i-col>
<i-col span="8">
<div v-if="current_menu_item=='table_param'">
<h3>table parameter</h3>
<pre>
{table_json}
</pre>
<h3>example code</h3>
<pre>
table = functions.get_apijson_table("{table.model_name}", role="{table.role}", request_tag="{table.request_tag}", tableui_name="{table.tableui_name}")
</pre>
</div>
<div v-if="current_menu_item=='tableui_config'">
<h3>settings.APIJSON_TABLE_UI.{table.tableui_name}</h3>
Expand Down

0 comments on commit 97b4e98

Please sign in to comment.