Skip to content

Commit 46e7e32

Browse files
author
Will Johnston
committed
new version
1 parent 064e766 commit 46e7e32

File tree

4 files changed

+219
-127
lines changed

4 files changed

+219
-127
lines changed

dist/platypus.d.ts

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* PlatypusTS v0.13.8 (https://platypi.io)
2+
* PlatypusTS v0.13.9 (https://platypi.io)
33
* Copyright 2015 Platypi, LLC. All rights reserved.
44
*
55
* PlatypusTS is licensed under the MIT license found at
@@ -8323,14 +8323,56 @@ declare module plat {
83238323
* DOM through bound context strings.
83248324
*/
83258325
class InnerHtml extends TemplateControl {
8326+
protected static _inject: any;
8327+
/**
8328+
* The options for the InnerHtml control.
8329+
*/
8330+
options: observable.IObservableProperty<IInnerHtmlOptions>;
8331+
/**
8332+
* The child controls of the control. All will be of type TemplateControl.
8333+
*/
8334+
controls: Array<TemplateControl>;
8335+
/**
8336+
* Reference to the ITemplateControlFactory injectable.
8337+
*/
8338+
protected _TemplateControlFactory: ITemplateControlFactory;
83268339
/**
8327-
* Loads the DOM with the new HTML String.
8340+
* The string representation of the current bound html template.
83288341
*/
8329-
contextChanged(): void;
8342+
protected _html: string;
8343+
/**
8344+
* Clears the inner template if one exists.
8345+
*/
8346+
setTemplate(): void;
83308347
/**
8331-
* Loads the context string as the innerHTML of the element.
8348+
* Checks options and initializes bindings.
83328349
*/
83338350
loaded(): void;
8351+
/**
8352+
* The function called when any of the options for this control changes.
8353+
* @param {IInnerHtmlOptions} newValue The new value of the options property.
8354+
* @param {IInnerHtmlOptions} oldValue? The old value of the options property.
8355+
*/
8356+
protected _onOptionsChanged(newValue: IInnerHtmlOptions, oldValue?: IInnerHtmlOptions): void;
8357+
/**
8358+
* Compiles the bound template and adds it to the element.
8359+
* @param {string} templateString The template string to compile and bind.
8360+
*/
8361+
protected _generateTemplate(templateString: string): void;
8362+
}
8363+
/**
8364+
* The options object for the
8365+
* InnerHtml control.
8366+
*/
8367+
interface IInnerHtmlOptions {
8368+
/**
8369+
* The HTML string to bind to the DOM.
8370+
*/
8371+
html?: string;
8372+
/**
8373+
* Will compile the template string if set to true.
8374+
*/
8375+
compile?: boolean;
83348376
}
83358377
/**
83368378
* A BindControl for binding an HTML select element

0 commit comments

Comments
 (0)