Home | History | Annotate | Download | only in touch_ntp

Lines Matching full:cards

9  * including a frame, container and cards.
14 * will be expanded to be the width of all cards.
15 * - The cards are the individual viewable items. There should be one card for
16 * each item in the list. Only one card will be visible at a time. Two cards
17 * will be visible while you are transitioning between cards.
32 * @param {!Element} frame The bounding rectangle that cards are visible in.
35 * @param {!Array.<!Element>} cards The individual viewable cards.
40 function Slider(frame, container, cards, currentCard, cardWidth) {
57 this.cards_ = cards;
90 * The time to transition between cards when animating. Measured in ms.
99 * The minimum velocity required to transition cards if they did not drag past
100 * the halfway point between cards. Measured in pixels / ms.
130 'Cards should be position static.');
150 * the width of cards. For example should be used when orientation changes
152 * @param {number} newCardWidth Width all cards should have, in pixels.
166 * Sets the cards used. Can be called more than once to switch card sets.
167 * @param {!Array.<!Element>} cards The individual viewable cards.
168 * @param {number} index Index of the card to in the new set of cards to
171 setCards: function(cards, index) {
172 assert(index >= 0 && index < cards.length,
174 this.cards_ = cards;
223 * cards look like they are sliding.
265 // If the drag wasn't far enough to change cards but the velocity was
324 // enough to change cards.