Created
April 11, 2017 05:49
-
-
Save steelydylan/32b06f642023ff26a7be263ec18d044c to your computer and use it in GitHub Desktop.
tableのUIをカスタムフィールドで使うためのカスタマイズ
This file contains 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
<div class="js-field"> | |
<div class="js-editable-table"> | |
<!-- BEGIN_IF [{table}[delnl]/nem] --> | |
{table}[raw] | |
<!-- ELSE --> | |
<table> | |
<tr> | |
<th>hogehoge</th> | |
<th>hogehoge</th> | |
</tr> | |
<tr> | |
<td>hogehoge</td> | |
<td>hogehoge</td> | |
</tr> | |
</table> | |
<!-- END_IF --> | |
<input type="hidden" class="js-editable-table-dest" value="{table}" name="table"> | |
<input type="hidden" name="field[]" value="table"> | |
</div> | |
</div> | |
<script> | |
ACMS.Ready(function(){ | |
ACMS.Library.aTableEdit(document.querySelector('.js-field')); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a-blog cms Ver.2.7.0から利用できます!