Ejemplo n.º 1
0
        /// <summary>
        /// Changes the button to a tooltip with the specified value, placement, and color.
        /// </summary>
        /// <param name="button">The button instance that this method extends.</param>
        /// <param name="tooltip">The value of the tooltip.</param>
        /// <param name="placement">The placement of the tooltip.</param>
        /// <param name="color">The color of the tooltip.</param>
        /// <returns>Current component.</returns>
        public static ButtonBase Tooltip(this ButtonBase button, string tooltip, BootstrapTooltipPlacementType placement, BootstrapColorBase color)
        {
            button.AddCssClass(string.Format("tooltip-{0}", color));
            button.Tooltip(tooltip, placement);

            return(button);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Makes the button block.
        /// </summary>
        /// <param name="button">The button instance that this method extends.</param>
        /// <returns>Current component.</returns>
        public static ButtonBase Block(this ButtonBase button)
        {
            button.AddCssClass(string.Format("{0}-block", button.GetBaseClass()));

            return(button);
        }