Exemplo n.º 1
0
        /// <summary>
        /// Configures the client events for the splitter.
        /// </summary>
        /// <param name="configureClientEvents">The action that configures the client events.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Telerik().Splitter()
        ///             .Name("Splitter")
        ///             .ClientEvents(events => events
        ///                 .OnLoad("onLoad")
        ///             )
        /// %&gt;
        /// </code>
        /// </example>
        public SplitterBuilder ClientEvents(Action <SplitterClientEventsBuilder> configureClientEvents)
        {
            Guard.IsNotNull(configureClientEvents, "configureClientEvents");

            var clientEventsBuilder = new SplitterClientEventsBuilder(Component.ClientEvents);

            configureClientEvents(clientEventsBuilder);

            return(this);
        }
 public SplitterClientEventsBuilderTests()
 {
     clientEvents = new SplitterClientEvents();
     builder = new SplitterClientEventsBuilder(clientEvents);
 }