@@ -622,24 +622,24 declare namespace dijit { | |||
|
622 | 622 | * Value must be among the list of locales specified during by the Dojo bootstrap, |
|
623 | 623 | * formatted according to [RFC 3066](http://www.ietf.org/rfc/rfc3066.txt) (like en-us). |
|
624 | 624 | */ |
|
625 | lang: string; | |
|
625 | lang?: string; | |
|
626 | 626 | |
|
627 | 627 | /** |
|
628 | 628 | * Bi-directional support, as defined by the [HTML DIR](http://www.w3.org/TR/html401/struct/dirlang.html#adef-dir) |
|
629 | 629 | * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's |
|
630 | 630 | * default direction. |
|
631 | 631 | */ |
|
632 | dir: string; | |
|
632 | dir?: string; | |
|
633 | 633 | |
|
634 | 634 | /** |
|
635 | 635 | * HTML class attribute |
|
636 | 636 | */ |
|
637 | class: string; | |
|
637 | class?: string; | |
|
638 | 638 | |
|
639 | 639 | /** |
|
640 | 640 | * HTML style attributes as cssText string or name/value hash |
|
641 | 641 | */ |
|
642 | style: string; | |
|
642 | style?: string; | |
|
643 | 643 | |
|
644 | 644 | /** |
|
645 | 645 | * HTML title attribute. |
@@ -651,13 +651,13 declare namespace dijit { | |||
|
651 | 651 | * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's |
|
652 | 652 | * interpreted as HTML. |
|
653 | 653 | */ |
|
654 | title: string; | |
|
654 | title?: string; | |
|
655 | 655 | |
|
656 | 656 | /** |
|
657 | 657 | * When this widget's title attribute is used to for a tab label, accordion pane title, etc., |
|
658 | 658 | * this specifies the tooltip to appear when the mouse is hovered over that text. |
|
659 | 659 | */ |
|
660 | tooltip: string; | |
|
660 | tooltip?: string; | |
|
661 | 661 | |
|
662 | 662 | /** |
|
663 | 663 | * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate |
@@ -668,7 +668,7 declare namespace dijit { | |||
|
668 | 668 | /** |
|
669 | 669 | * pointer to original DOM node |
|
670 | 670 | */ |
|
671 | srcNodeRef: HTMLElement; | |
|
671 | srcNodeRef?: HTMLElement; | |
|
672 | 672 | |
|
673 | 673 | /** |
|
674 | 674 | * This is our visible representation of the widget! Other DOM |
@@ -682,7 +682,7 declare namespace dijit { | |||
|
682 | 682 | * Designates where children of the source DOM node will be placed. |
|
683 | 683 | * "Children" in this case refers to both DOM nodes and widgets. |
|
684 | 684 | */ |
|
685 | containerNode: HTMLElement; | |
|
685 | containerNode?: HTMLElement; | |
|
686 | 686 | |
|
687 | 687 | /** |
|
688 | 688 | * The document this widget belongs to. If not specified to constructor, will default to |
@@ -701,7 +701,7 declare namespace dijit { | |||
|
701 | 701 | * The text direction can be different than the GUI direction by using this parameter in creation |
|
702 | 702 | * of a widget. |
|
703 | 703 | */ |
|
704 | textDir: string; | |
|
704 | textDir?: string; | |
|
705 | 705 | |
|
706 | 706 | _started?: boolean; |
|
707 | 707 |
@@ -48,7 +48,7 declare namespace dojo { | |||
|
48 | 48 | matches(object: T): boolean; |
|
49 | 49 | } |
|
50 | 50 | |
|
51 |
type BaseQueryType = string | object | ((...params: unknown[]) => |
|
|
51 | type BaseQueryType = string | object | ((...params: unknown[]) => boolean); | |
|
52 | 52 | |
|
53 | 53 | interface QueryEngine<T extends object, Q extends BaseQueryType> { |
|
54 | 54 | <O extends QueryOptions>(query: Q, options?: O): QueryEngineFunction<T>; |
@@ -18,7 +18,7 class ScheduleWidget extends _WidgetBase | |||
|
18 | 18 | data: string[]; |
|
19 | 19 | |
|
20 | 20 | _onClick() { |
|
21 | this.set("data", "", ""); | |
|
21 | this.set("data", ["", ""]); | |
|
22 | 22 | |
|
23 | 23 | const t = this.get("title"); |
|
24 | 24 | this.set({ |
@@ -35,7 +35,7 const w = new ScheduleWidget({title: "Ye | |||
|
35 | 35 | |
|
36 | 36 | w.get("data"); |
|
37 | 37 | |
|
38 | w.set("data", "a","b"); | |
|
38 | w.set("data", ["a","b"]); | |
|
39 | 39 | w.set({ |
|
40 | 40 | data: ["a", "b"] |
|
41 | 41 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now