Exemplo n.º 1
0
        /// <summary>
        /// Changes the color of the popover title.
        /// </summary>
        /// <param name="popover">The popover instance that this method extends.</param>
        /// <param name="color">The value of the color.</param>
        /// <returns>Current component.</returns>
        public static PopoverBase TitleColor(this PopoverBase popover, BootstrapColorBase color)
        {
            var value = popover.GetAttribute("data-titleclass");

            value = string.Join(" ", value, color);
            popover.SetAttribute("data-titleclass", value);

            return(popover);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Changes the background color of the popover content.
        /// </summary>
        /// <param name="popover">The popover instance that this method extends.</param>
        /// <param name="color">The value of the color.</param>
        /// <returns>Current component.</returns>
        public static PopoverBase ContentBackgroundColor(this PopoverBase popover, BootstrapColorBase color)
        {
            var value = popover.GetAttribute("data-titleclass");

            value = string.Join(" ", value, string.Format("bg-{0}", color));

            popover.SetAttribute("data-class", value);

            return(popover);
        }