Skip to Content
JQUERY UI使用者介面設計
book

JQUERY UI使用者介面設計

by Eric Sarrion
November 2012
Intermediate to advanced
248 pages
4h 31m
Chinese
GoTop Information, Inc.
Content preview from JQUERY UI使用者介面設計
滑桿
|
91
選項 功能
options.range
設成
true
時,代表要使用兩個游標(
options.values
的長度會是 2,兩者的
值代表游標初始位置)。
如果設為
"min"
"max"
的話,必須只用一個游標(否則選項就沒有效用)。
使用這些設定時,兩個游標之間的區間(設為
true
時)、游標到開頭的區間
(設為
"min"
時)、游標到結尾的區間(設為
"max"
時)會以特殊樣式顯示。
options.step
代表游標在軸上的移動單位量。預設是 1
管理滑桿事件
點選游標、點選軸、呼叫
slider("value", value)
slider("values", index, value)
時,都會觸發表 7-3 列出的事件。
7-3 管理滑桿事件的選項
選項 功能
options.start
游標開始移動時,會呼叫
start(event)
方法。
options.stop
游標移動結束時,會呼叫
stop(event)
方法。
options.change
游標移動結束時,會呼叫
change(event)
方法(與
options.stop
一樣)。
options.slide
游標拖拉移動時,會呼叫
slide(event)
方法。使用者直接點選軸上位置的時
候不會呼叫這個方法。
slider("action", params) 方法
slider("action", params)
方法(如表 7-4 所示)讓您能對滑桿作一些動作,像是把游標
移到新位置。動作是以字串形式透過第一個引數指定(如
"value"
代表指定游標新位置) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

jQuery Mobile建置與執行

jQuery Mobile建置與執行

Maximiliano Firtman
Pro JSF and HTML5: Building Rich Internet Components, Second Edition

Pro JSF and HTML5: Building Rich Internet Components, Second Edition

Hazem Saleh, Allan Lykke Christensen, Zubin Wadia

Publisher Resources

ISBN: 9789862766460