} Array of CSS class names applicable to the
* container.
*/
getClassNames(container: goog.ui.Container): string[];
/**
* Returns the default orientation of containers rendered or decorated by this
* renderer. The base class implementation returns {@code VERTICAL}.
* @return {goog.ui.Container.Orientation} Default orientation for containers
* created or decorated by this renderer.
*/
getDefaultOrientation(): goog.ui.Container.Orientation;
}
}
declare module goog.ui.ContainerRenderer {
/**
* Constructs a new renderer and sets the CSS class that the renderer will use
* as the base CSS class to apply to all elements rendered by that renderer.
* An example to use this function using a menu is:
*
*
* var myCustomRenderer = goog.ui.ContainerRenderer.getCustomRenderer(
* goog.ui.MenuRenderer, 'my-special-menu');
* var newMenu = new goog.ui.Menu(opt_domHelper, myCustomRenderer);
*
*
* Your styles for the menu can now be:
*
* .my-special-menu { }
*
*
* instead of
*
* .CSS_MY_SPECIAL_MENU .goog-menu { }
*
*
* You would want to use this functionality when you want an instance of a
* component to have specific styles different than the other components of the
* same type in your application. This avoids using descendant selectors to
* apply the specific styles to this component.
*
* @param {Function} ctor The constructor of the renderer you want to create.
* @param {string} cssClassName The name of the CSS class for this renderer.
* @return {goog.ui.ContainerRenderer} An instance of the desired renderer with
* its getCssClass() method overridden to return the supplied custom CSS
* class name.
*/
function getCustomRenderer(ctor: Function, cssClassName: string): goog.ui.ContainerRenderer;
/**
* Default CSS class to be applied to the root element of containers rendered
* by this renderer.
* @type {string}
*/
var CSS_CLASS: string;
}