Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upload the tags for button to make sure they are correct.

  • Loading branch information...
commit dfab05864ae81fba9afa11e622b1f084f1bb0b4b 1 parent 58234cd
@jcreamer898 jcreamer898 authored
Showing with 41 additions and 9 deletions.
  1. +2 −1  .gitignore
  2. +39 −8 Juice/Mobile/Button.cs
View
3  .gitignore
@@ -6,4 +6,5 @@ bin
artifacts/*
packages/*
msbuild.log
-*.csproj.user
+*.csproj.user
+/_[Re][re]Sharper.*
View
47 Juice/Mobile/Button.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web.UI;
@@ -8,7 +9,8 @@
using Juice.Framework;
-namespace Juice.Mobile {
+namespace Juice.Mobile
+{
/// <summary>
/// Links with data-role="button". Input-based buttons and button elements are auto-enhanced, no data-role required
@@ -19,27 +21,56 @@ namespace Juice.Mobile {
[TargetControlType(typeof(HtmlInputButton))]
[TargetControlType(typeof(Button))]
[TargetControlType(typeof(LinkButton))]
- public class Button : LinkBase {
-
- //data-corners true | false
+ public class Button : LinkBase
+ {
+ /// <summary>
+ /// Applies the theme button border-radius if set to true. This option is also exposed as a data attribute: data-corners="false".
+ /// Reference: http://jquerymobile.com/demos/1.2.0/docs/api/data-attributes.html
+ /// </summary>
+ [DefaultValue(true)]
+ [Category("Appearance")]
+ [Description("Whether to show corners or not.")]
[WidgetOption("corners", true)]
public Boolean Corners { get; set; }
- //data-icon home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search
+ /// <summary>
+ /// Applies an icon from the icon set. This option is also exposed as a data attribute: data-icon="star".
+ /// Reference: http://jquerymobile.com/demos/1.2.0/docs/api/data-attributes.html
+ /// </summary>
+ [DefaultValue(null)]
+ [Category("Appearance")]
+ [Description("What type of icon to show for this button.")]
[WidgetOption("icon", null)]
public MobileIcon? Icon { get; set; }
- //data-iconpos left | right | top | bottom | notext
+ /// <summary>
+ /// Positions the icon in the button. Possible values: left, right, top, bottom, none, notext. The notext value will display an icon-only button with no text feedback. This option is also exposed as a data attribute: data-iconpos="left"
+ /// Reference: http://jquerymobile.com/demos/1.2.0/docs/api/data-attributes.html
+ /// </summary>
+ [DefaultValue(null)]
+ [Category("Appearance")]
+ [Description("Where to position the icon on the button. ")]
[WidgetOption("iconpos", null)]
public MobileIconPosition? IconPosition { get; set; }
- //data-iconshadow true | false
+ /// <summary>
+ /// Whether or not to show an icon shadow.
+ /// </summary>
+ [DefaultValue(true)]
+ [Category("Appearance")]
+ [Description("Whether or not to show an icon shadow.")]
[WidgetOption("iconshadow", true)]
public Boolean IconShadow { get; set; }
//data-shadow true | false
+ /// <summary>
+ /// Whether or not to show a button shadow.
+ /// Reference: http://jquerymobile.com/demos/1.2.0/docs/api/data-attributes.html
+ /// </summary>
+ [DefaultValue(true)]
+ [Category("Appearance")]
+ [Description("Whether or not to show a button shadow.")]
[WidgetOption("shadow", true)]
public Boolean Shadow { get; set; }
-
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.