Rock.Web.UI.Controls.RockRating.CreateChildControls C# (CSharp) Method

CreateChildControls() protected method

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
return void
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            Controls.Clear();

            RockControlHelper.CreateChildControls( this, Controls );

            this.Attributes.Add( "type", "number" );
            this.Attributes.Add( "data-min", "1" );
            this.Attributes.Add( "data-max", "5" );
            this.Attributes.Add( "data-clearable", " " );
            this.Attributes.Add( "data-icon-lib", "fa" );
            this.Attributes.Add( "data-active-icon", "fa-star" );
            this.Attributes.Add( "data-inactive-icon", "fa-star-o" );
            this.Attributes.Add( "data-clearable-icon", "fa-remove" );
        }