- Custom DataBase Tables
- CDBT Version 1.x
- 関数リファレンス
- cdbt_create_button
cdbt_create_button
cdbt_create_button( string $btn_type, mixed $btn_value[, string $btn_id][, string $btn_class][, string $btn_action][, string $prefix_icon] )
Bootstrap準拠スタイルのボタンオブジェクト(HTML)を生成します。
パラメータ
$btn_type
default :
button
$btn_value
If $btn_type is “stateful”, second arg in array is used for string that will change after clicked button.
$btn_id
eq. id attribute value in button tag
$btn_class
default :
default (eq. class attribute value of “btn-*” in button tag)
$btn_action
eq. data-action attribute value in button tag
$prefix_icon
eq. value of “glyphicon-*” of the bootstrap
返り値
string
eq. html document
変更履歴
| バージョン | 内容 |
|---|---|
| 1.0.0 | – |
使用例
<?php