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);
        }