event handler

Popularity
500+ learners.
In the event handler we will extract the different types of images.
En el controlador del evento extraeremos los diferentes tipos de imagen.
The code for the event handler appears as follows.
El código del controlador de eventos tiene este aspecto.
For example, in the event handler, you may dynamically set the yii\base\Application::$language property based on some parameters.
Por ejemplo, en el manejador del evento, podrías definir dinámicamente la propiedad yii\base\Application::$language basada en algunos parámetros.
In the code below the duration will be formatted, and the callback event handler is defined as an anonymous function.
En el código de abajo la duración será formateada y el controlador de eventos de devolución de llamada estará definido como función anónima.
While you can instruct users of the extension to explicitly attach your event handler in the extension to the beginRequest event, a better way is to do this automatically.
Aunque podemos indicar a los usuarios de la extensión que añadan nuestro gestor de eventos para que capture beginRequest, es mejor hacerlo automáticamente.
The method takes two parameters, the first a boolean whether to format the result or not, and the second is the callback event handler.
Este método toma dos parámetros, primero un valor lógico que indica si el resultado debe formatearse o no, y en segundo lugar el controlador de eventos de devolución de llamada.
In StyleVision, all the defined functions are available as options that can be assigned to an event handler property in the Event property group in the Properties sidebar.
En StyleVision todas las funciones definidas en el editor se pueden asignar a una propiedad de controlador de eventos del grupo de propiedades evento (ventana Propiedades).
This process is contained in the Click event handler of the button.
Este proceso está contenido en el controlador del evento Click del botón.
In other words, the event handler is invoked when the event occurs.
En otras palabras, el manejador de eventos se invoca cuando se produce el evento.
Using the method addEventListener() the element is assigned cell an event handler for a click.
Con el método addEventListener() se asigna al elemento cell un manejador de eventos para un click.
Return to design mode and double-click on ButtonMessage to generate the Click event handler.
Ahora regrese al modo diseño y haga doble clic sobre BotonMensaje para generar el manejador del evento Click.
In the event handler, create a log entry based on the command being recorded.
En el controlador de eventos, cree una entrada de registro basado en el comando que se está grabando.
When attaching an event handler, you may provide additional data as the third parameter to yii\base\Component::on().
Cuando se adjunta un gestor de eventos, se pueden proporcionar datos adicionales como tercer parámetro de yii\base\Component::on().
Line 43-47: Using the method addEventListener() the element is assigned cell an event handler for a click.
Líneas 43-47: Con el método addEventListener() se asigna al elemento cell un manejador de eventos para un click.
Through the yii\base\ActionEvent::$result property, an event handler may access or modify the action result.
A través de la propiedad yii\base\ActionEvent::$result, un manejador de eventos puede acceder o modificar el resultado de una acción.
As we can see, the event handler gets an argument event which allows us to interact with our HTML.
Como vemos de event handler obtiene un argumento event el cual nos permite interactuar con nuestro HTML.
An event handler may set the yii\base\ActionEvent::$isValid property to be false to stop running the action.
Un manejador de eventos puede definir la propiedad yii\base\ActionEvent::$isValid como false para detener la ejecución de una acción.
Any command or executable file with optional command-line parameters can be defined as the event handler.
Cualquier comando o un archivo ejecutable con parámetros opcionales de línea de comandos se puede definir como el controlador de eventos.
The signature of an event handler should be as follows, where $event refers to the event parameter.
La firma de un controlador de eventos debe ser la siguiente, donde $ event refiere al parámetro de evento.
Alternatively, you could set the onmessage event handler directly (though addEventListener is always encouraged by JavaScript ninjas).
De forma alternativa, también podrías configurar el gestor de eventos onmessage directamente (aunque los expertos en JavaScript siempre recomiendan addEventListener).
Palabra del día
celoso