Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Johnston committed Jun 23, 2015
1 parent 064e766 commit 46e7e32
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 127 deletions.
50 changes: 46 additions & 4 deletions dist/platypus.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* PlatypusTS v0.13.8 (https://platypi.io)
* PlatypusTS v0.13.9 (https://platypi.io)
* Copyright 2015 Platypi, LLC. All rights reserved.
*
* PlatypusTS is licensed under the MIT license found at
Expand Down Expand Up @@ -8323,14 +8323,56 @@ declare module plat {
* DOM through bound context strings.
*/
class InnerHtml extends TemplateControl {
protected static _inject: any;
/**
* The options for the InnerHtml control.
*/
options: observable.IObservableProperty<IInnerHtmlOptions>;
/**
* The child controls of the control. All will be of type TemplateControl.
*/
controls: Array<TemplateControl>;
/**
* Reference to the ITemplateControlFactory injectable.
*/
protected _TemplateControlFactory: ITemplateControlFactory;
/**
* Loads the DOM with the new HTML String.
* The string representation of the current bound html template.
*/
contextChanged(): void;
protected _html: string;
/**
* Clears the inner template if one exists.
*/
setTemplate(): void;
/**
* Loads the context string as the innerHTML of the element.
* Checks options and initializes bindings.
*/
loaded(): void;
/**
* The function called when any of the options for this control changes.
* @param {IInnerHtmlOptions} newValue The new value of the options property.
* @param {IInnerHtmlOptions} oldValue? The old value of the options property.
*/
protected _onOptionsChanged(newValue: IInnerHtmlOptions, oldValue?: IInnerHtmlOptions): void;
/**
* Compiles the bound template and adds it to the element.
* @param {string} templateString The template string to compile and bind.
*/
protected _generateTemplate(templateString: string): void;
}
/**
* The options object for the
* InnerHtml control.
*/
interface IInnerHtmlOptions {
/**
* The HTML string to bind to the DOM.
*/
html?: string;
/**
* Will compile the template string if set to true.
*/
compile?: boolean;
}
/**
* A BindControl for binding an HTML select element
Expand Down
Loading

0 comments on commit 46e7e32

Please sign in to comment.