web端test

<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary">
<input type="radio" name="options" id="option1"> 選項 1
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="option2"> 選項 2
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="option3"> 選項 3
</label>
</div>ide

 

 

<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle btn-xs" data-toggle="dropdown">
原始
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><button type=button>功能</li>

<li><a href="#">另外一個功能</a></li>

<li><a href="#">其餘</a></li>

<li><a href="#">分離的連接</a></li>
</ul>
</div>ui

 

 

<!-- 模態框(Modal) --> <h2>模態框(Modal)插件事件</h2> <!-- 按鈕觸發模態框 --> <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">開始演示模態框</button> <!-- 模態框(Modal) --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">模態框(Modal)標題</h4> </div> <div class="modal-body">點擊關閉按鈕檢查事件功能。</div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">關閉</button> <button type="button" class="btn btn-primary">提交更改</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div> <!-- /.modal --> <script> $(function() { $('#myModal').modal('hide') }); </script> <script> $(function() { $('#myModal').on('hide.bs.modal', function() { alert('嘿,我據說您喜歡模態框...'); }) }); </script>spa

$('#identifier').on('show.bs.modal', function () { // 執行一些動做... })
$('#identifier').modal('show')

$('#identifier').modal('hide')


$(function () {
$('button[data-target="#myModal"]').on('click',function (e) {
var divid=$(e.target).parents("div").attr("id");
alert(divid);
})
});
提示:
<a href="#" data-toggle="tooltip" data-placement="right" title="右側的 Tooltip">右側的 Tooltip</a>

<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="左側的 Tooltip">左側的 Tooltip
</button>插件

 

 

<table style="table-layout: fixed;width: XXX px">
    <tr>
          <td style="white-space: nowrap;text-overflow: ellipsis;overflow: hidden;" ></td>
    </tr>
</table>

table標籤須要設定屬性 table-layout: fixed;width:XXXpx;code

在要超出隱藏的td標籤上設定屬性  white-space: nowrap;text-overflow: ellipsis;overflow: hidden; token

不要忘了給table加個寬度 事件

 

 

 

 

 

 

 

 

 

 

ProgressManager.getInstance().run(new Task.Backgroundable(project, "Title"){
        public void run(@NotNull ProgressIndicator progressIndicator) {

            // start your process

            // Set the progress bar percentage and text
            progressIndicator.setFraction(0.10);
            progressIndicator.setText("90% to finish");


            // 50% done
            progressIndicator.setFraction(0.50);
            progressIndicator.setText("50% to finish");


            // Finished
            progressIndicator.setFraction(1.0);
            progressIndicator.setText("finished");

        }});

If you need read some data from other thread you should useip






AccessToken token = null; try { token = ApplicationManager.getApplication().acquireReadActionLock(); //do what you need } finally { token.finish(); }
ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
    public void run() {
        ApplicationManager.getApplication().runReadAction(new Runnable() {
            public void run() {
            // do whatever you need to do
            }
        });
    }
});
相關文章
相關標籤/搜索