Skip to content

Can we get more events for textboxes? #193

@ptrxyz

Description

@ptrxyz

Summary

I would like to see some more basic events for the input fields (the ones with floating label, as well as normal input). And maybe keeping them consistent would also be nice (as of now, normal inputs do only forward on:change while floating inputs do also forward on:blur events).

To be honest, I think those make sense for all components, but they are for sure useful for text inputs.

Motivation

I am going to use this for validation and would love to have a bit more control over the events. :)

I suggest to add some basic events like those:

Events

  • A: on:change
  • B: on:keyup
  • C: on:keydown
  • D: on:keypress
  • E: on:focus
  • F: on:blur
  • G: on:click
  • H: on:mouseover
  • I: on:mouseenter
  • J: on:mouseleave
  • K: on:paste

Components and Events

  • Input (A, B, C, D, E, F, G, H, I, J, K)
  • File input (A, B, C, D, E, F, G, H, I, J, K)
  • Floating label (A, B, C, D, E, F, G, H, I, J, K)
  • Search (A, B, C, D, E, F, G, H, I, J, K)
  • Textarea (A, B, C, D, E, F, G, H, I, J, K)
  • Checkbox (A, B, C, D, E, F, G, H, I, J)
  • Radio (A, B, C, D, E, F, G, H, I, J)
  • Toggle (A, G, H, I, J)
  • Range (A, B, C, D, G, H, I, J)
  • Buttons (A, B, C, D, G, H, I, J)
  • ButtonGroupItem (A, B, C, D, G, H, I, J)
  • Pagination buttons (A, B, C, D, G, H, I, J)
  • Dropdown / DropdownItem (A, B, C, D, G, H, I, J)
  • Tabs (A, B, C, D, G, H, I, J)
  • Sidebar items (A, B, C, D, G, H, I, J)
  • Navbar items / NavLi (A, B, C, D, G, H, I, J)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions