@evs-chris/raui
Advanced tools
Comparing version
{ | ||
"name": "@evs-chris/raui", | ||
"version": "0.8.8", | ||
"version": "0.8.9", | ||
"description": "Components, decorators, and helpers for Ractive apps that are generally Material-ish", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/evs-chris/raui", |
import Ractive, { Plugin } from 'ractive'; | ||
export class Table<V = any, T extends Table<T> = Table<any>> extends Ractive<T> { | ||
readonly selections: V[]; | ||
selections: V[]; | ||
selected: V; | ||
/** Remove any selections. */ | ||
deselect(): void; | ||
/** Move the selection up or down the list by the given offset. | ||
* | ||
* @param offset - the positive (down) or negative (up) offset to move the selection | ||
*/ | ||
selectionOffset(offset: number): void; | ||
/** Move the selection down by one row. */ | ||
selectionDown(): void; | ||
/** Move the selection up by one row. */ | ||
selectionUp(): void; | ||
} | ||
@@ -11,2 +27,2 @@ | ||
export default function plugin(opts?: PluginOpts): Plugin; | ||
export default function plugin(opts?: PluginOpts): Plugin; |
2631710
0.02%29395
0.04%