/// <summary>Constructor.</summary> /// <param name="container">The root HTML element of the control (if null a <DIV></DIV> is generated).</param> /// <param name="fillPane">Flag indicating which pane is the filler pane (assumes the size not taken up by the other pane).</param> internal HorizontalSplitPanel(jQueryObject container, HorizontalEdge fillPane) : base(container) { // Store values. this.fillPane = fillPane; // Construct panes. divLeft = CreateDiv(); divRight = CreateDiv(); // Setup common panel CSS. divLeft.CSS(Css.Left, "0px"); divRight.CSS(Css.Right, "0px"); // Insert into DOM. Container.Empty(); divLeft.AppendTo(Container); divRight.AppendTo(Container); // Finish up. UpdateLayout(); }
public static HorizontalSplitPanel CreateHorizontal(jQueryObject container, HorizontalEdge fillPane) { return new HorizontalSplitPanel(container, fillPane); }
public DataGridColumnBuilder <T> FixedPosition(HorizontalEdge value) { base.Options["fixedPosition"] = value; return(this); }
public GaugeIndicatorBuilder HorizontalOrientation(HorizontalEdge value) { base.Options["horizontalOrientation"] = value; return(this); }
public void SlideOff(HorizontalEdge direction, Action onComplete) { // Ensure the panel is on stage. CenterStage(); // Configure the animation. Dictionary properties = new Dictionary(); properties[Css.Left] = direction == HorizontalEdge.Left ? 0 - Width : Width; // Perform animation. Container.Animate( properties, parentList.Slide.ToMsecs(), parentList.Slide.Easing, delegate { // On complete. Hide(); Helper.Invoke(onComplete); }); }
public void SetPosition(HorizontalEdge direction, bool isVisible) { int startLeft = direction == HorizontalEdge.Right ? 0 - Width : Width; Container.CSS(Css.Left, startLeft + Css.Px); Container.CSS(Css.Display, isVisible ? Css.Block : Css.None); SyncWidth(); }
public void SlideOn(HorizontalEdge direction, Action onComplete) { // Prepare the panels starting position. SetPosition(direction, true); // Configure the animation. Dictionary properties = new Dictionary(); properties[Css.Left] = 0; // Perform animation. Container.Animate( properties, parentList.Slide.ToMsecs(), parentList.Slide.Easing, delegate { // On complete. Helper.Invoke(onComplete); }); }
public FunnelLabelBuilder HorizontalAlignment(HorizontalEdge value) { base.Options["horizontalAlignment"] = value; return(this); }