Open.Core.Controls.Buttons.ButtonView.AddRequiredTemplate C# (CSharp) Метод

AddRequiredTemplate() защищенный Метод

Adds a template to the list of resoures to download (if it's not already available in the page).
Aftering adding one or more Templates Url's call the 'DownloadTemplates' method.
protected AddRequiredTemplate ( string selector, string url ) : void
selector string The CSS selector for the template.
url string The URL to download the template(s) from.
Результат void
        protected void AddRequiredTemplate(string selector, string url)
        {
            if (Helper.Template.IsAvailable(selector)) return;
            if (templateLoader == null) templateLoader = new TemplateLoader();
            templateLoader.AddUrl(url);
        }