Example #1
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Direction != null)
            {
                builder.AddAttribute(nameof(Direction), (int)Direction.Value);
            }
            if (Threshold != null)
            {
                builder.AddAttribute(nameof(Threshold), AttributeHelper.UInt32ToString(Threshold.Value));
            }

            builder.AddAttribute("onswiped", OnSwiped);
        }