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使用者介面設計
選取元素
|
165
11-2 管理選定項目事件的選項
選項 功能
options.start
當滑鼠點選
selectable(options)
方法指定允許選取的項目時,會呼叫
start(event)
方法。它接著會啟動選取序列(逐一把新項目加入選取範圍、
或是從選取範圍移除)。
options.stop
放開滑鼠後,會呼叫
stop(event)
方法。代表選取序列已經結束。
options.selecting
當選取了新的項目、且滑鼠按鈕沒放開時(這次選取序列還沒呼叫
stop()
),會呼叫
selecting(event, ui)
方法。剛被選定的 DOM 元素可透
ui.selecting
取得。
options.unselecting
當取消選取了新的項目、且滑鼠按鈕沒放開時(這次選取序列還沒呼叫
stop()
),會呼叫
unselecting(event, ui)
方法。剛被取消選定的 DOM
素可透過
ui.unselecting
取得。
options.selected
滑鼠放開後,會逐一為選定序列內所有被選取的項目呼叫
selected(event,
ui)
方法。之前已經被選定的項目不會再重複呼叫此方法(但它們仍然是被
選定的狀態)。選定的元素可透過
ui.selected
取得。
options.unselected
滑鼠放開後,會逐一為選定序列內所有被取消選取的項目呼叫
unselected(event)
方法。之前已經沒有被選定的項目不會再重複呼叫此方法
(但它們仍然是沒有被選定的狀態)。取消選定的元素可透過
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