ViewController
Direct Subclass:
AnimationController, AnswerViewController, CategoryListViewController, CodeEditorViewController, CommentListViewController, CommentViewController, DeleteCommentViewController, FollowButtonController, FullScreenModalTemplate, HeaderViewController, ItemGroupViewController, LanguageLookupViewController, LeaderboardViewController, LoadMoreCommentsViewController, MarkdownViewController, ModalController, ModalViewController, NotificationBubbleViewController, PopoverViewController, PostButtonViewController, ProgressButtonController, SearchViewController, SidebarNavigationViewController, StackExchangeImporterViewController, StickyViewController, SwappingViewController, VoteViewController, WriteCommentViewController
Indirect Subclass:
Manages a View of any type with iOS-esque handlers.
Static Method Summary
Static Public Methods | ||
public static |
Creates a view controller directly for all members of a class. |
|
public static |
of(elem: string | Element): ViewController Returns a canolical VC of an element if it exists |
Constructor Summary
Public Constructor | ||
public |
constructor(root: HTMLElement) |
Static Public Methods
public static forClass(className: string, predicate: Function, root: HTMLElement) source
Creates a view controller directly for all members of a class. You can specify a custom predicate.
public static of(elem: string | Element): ViewController source
Returns a canolical VC of an element if it exists
Params:
Name | Type | Attribute | Description |
elem | string | Element | Element id (no check if the element does not exist) or elem. |
Public Constructors
public constructor(root: HTMLElement) source
Params:
Name | Type | Attribute | Description |
root | HTMLElement | The element to which the controller is associated |