Technical Info
>
Framework Considerations: Angular
>
Angular Directives for User Interaction
Begin by importing the JhaResponsiveCoreModule into your application.
Import the JhaResponsiveCoreModule module
// import into app.module
import{JhaResponsiveCoreModule}from'@jkhy/responsive-ui-angular/jha-responsive-core';@NgModule({imports:[...JhaResponsiveCoreModule.forRoot(),...]})exportclassAppModule(){}
jhaThrottleClick
Add the jhaThrottleClick directive to any clickable element. This directive throttles the typical click event to prevent double clicks. When using the jhaThrottleClick directive, bind your method to jhaThrottledClick instead of click or jhaClick. There is one optional attribute of jhaThrottleTime, which sets the delay in milliseconds and is defaulted to 500.