Ir al código fuente de este archivo.
Namespaces | |
| namespace | Helpers |
Funciones | |
| xhtml_start_tag ($tag, $attrs=null) | |
| xhtml_end_tag ($tag) | |
| xhtml_tag ($tag, $attrs=null) | |
| link_to ($action, $text='') | |
| link_to_action ($action, $text='') | |
| link_to_remote ($action) | |
| javascript_include_tag ($src='') | |
| javascript_library_tag ($src) | |
| stylesheet_link_tag ($name) | |
| img_tag ($img) | |
| form_remote_tag ($data) | |
| form_tag ($action) | |
| end_form_tag () | |
| submit_tag ($caption) | |
| submit_remote_tag ($caption) | |
| submit_image_tag ($caption, $src='') | |
| button_tag ($caption='') | |
| get_value_from_action ($name) | |
| get_id_and_name ($value) | |
| input_field_tag ($name) | |
| text_field_tag ($name) | |
| checkbox_field_tag ($name) | |
| numeric_field_tag ($name) | |
| textupper_field_tag ($name) | |
| date_field_tag ($name) | |
| file_field_tag ($name) | |
| radio_field_tag ($name) | |
| textarea_tag ($name, $value=null) | |
| password_field_tag ($name) | |
| hidden_field_tag ($name) | |
| select_tag ($name, $data=array()) | |
| option_tag ($value, $text='') | |
| upload_image_tag ($name) | |
| set_droppable ($obj, $action='') | |
| tr_break ($x='') | |
| br_break ($x='') | |
| tr_color () | |
| tr_color_class () | |
| button_to_action ($caption, $action='', $classCSS='') | |
| button_to_remote_action ($caption, $action='', $classCSS='') | |
| updater_select ($name, $data=array()) | |
| text_field_with_autocomplete ($name) | |
| xhtml_template ($template='template') | |
| tab_tag ($tabs, $color='green', $width=800) | |
| js_execute ($s) | |
| js_alert ($s) | |
| time_field_tag ($name='') | |
| month_field_tag ($name) | |
| swf_tag ($data) | |
| get_kumbia_url ($url) | |
| button_tag | ( | $ | caption = '' |
) |
| button_to_action | ( | $ | caption, | |
| $ | action = '', |
|||
| $ | classCSS = '' | |||
| ) |
| button_to_remote_action | ( | $ | caption, | |
| $ | action = '', |
|||
| $ | classCSS = '' | |||
| ) |
| checkbox_field_tag | ( | $ | name | ) |
| date_field_tag | ( | $ | name | ) |
| end_form_tag | ( | ) |
| file_field_tag | ( | $ | name | ) |
| form_remote_tag | ( | $ | data | ) |
Permite generar un formulario remoto
| string | $data |
| form_tag | ( | $ | action | ) |
| get_id_and_name | ( | $ | value | ) |
| get_kumbia_url | ( | $ | url | ) |
| get_value_from_action | ( | $ | name | ) |
| hidden_field_tag | ( | $ | name | ) |
| img_tag | ( | $ | img | ) |
| input_field_tag | ( | $ | name | ) |
| javascript_include_tag | ( | $ | src = '' |
) |
| javascript_library_tag | ( | $ | src | ) |
| js_alert | ( | $ | s | ) |
| js_execute | ( | $ | s | ) |
| link_to | ( | $ | action, | |
| $ | text = '' | |||
| ) |
| link_to_action | ( | $ | action, | |
| $ | text = '' | |||
| ) |
| link_to_remote | ( | $ | action | ) |
Permite ejecutar una acci�n en la vista actual dentro de un contenedor HTML usando AJAX
confirm: Texto de Confirmaci�n success: Codigo JavaScript a ejecutar cuando termine la petici�n AJAX before: Codigo JavaScript a ejecutar antes de la petici�n AJAX oncomplete: Codigo JavaScript que se ejecuta al terminar la petici�n AJAX update: Que contenedor HTML ser� actualizado action: Accion que ejecutar� la petici�n AJAX text: Texto del Enlace
| month_field_tag | ( | $ | name | ) |
| numeric_field_tag | ( | $ | name | ) |
| option_tag | ( | $ | value, | |
| $ | text = '' | |||
| ) |
| password_field_tag | ( | $ | name | ) |
| radio_field_tag | ( | $ | name | ) |
| select_tag | ( | $ | name, | |
| $ | data = array() | |||
| ) |
Crea una lista SELECT
| string | $name | |
| array,string | $data |
Para el select basado en activerecord: option: lista de campos separados por coma para colocar en la opcion (por defecto es el id) separator: separador de valores para los campos de la opcion value: indica el campo que servira de valor para la opcion (por defecto es el id) conditions: condiciones de busqueda
Obtengo id, name y value
combo creado a partir de un modelo
Arreglo que contiene los argumentos para el find
Asignando parametros de busqueda
| set_droppable | ( | $ | obj, | |
| $ | action = '' | |||
| ) |
| stylesheet_link_tag | ( | $ | name | ) |
| submit_image_tag | ( | $ | caption, | |
| $ | src = '' | |||
| ) |
| submit_remote_tag | ( | $ | caption | ) |
Crea un boton de submit para el formulario remoto actual
| string | $caption |
| submit_tag | ( | $ | caption | ) |
| swf_tag | ( | $ | data | ) |
Permite incluir un objeto flash dentro de una vista respetando las convenciones de directorios y rutas en Kumbia
| string | $data url del archivo flash con o sin extension .swf height: Alto del flash width: Ancho del flash wmode: Modo en que se muestra el flash |
| tab_tag | ( | $ | tabs, | |
| $ | color = 'green', |
|||
| $ | width = 800 | |||
| ) |
| text_field_tag | ( | $ | name | ) |
| text_field_with_autocomplete | ( | $ | name | ) |
| textarea_tag | ( | $ | name, | |
| $ | value = null | |||
| ) |
| textupper_field_tag | ( | $ | name | ) |
| time_field_tag | ( | $ | name = '' |
) |
| tr_color | ( | ) |
| tr_color_class | ( | ) |
| updater_select | ( | $ | name, | |
| $ | data = array() | |||
| ) |
Crea un select que actualiza un container usando una accion ajax que cambia dependiendo del id selecionado en el select
| string | $id | |
| array | $data |
Nota: soporta todas las funciones del select_tag
Obtengo id, name y value
| upload_image_tag | ( | $ | name | ) |
| xhtml_end_tag | ( | $ | tag | ) |
| xhtml_start_tag | ( | $ | tag, | |
| $ | attrs = null | |||
| ) |
| xhtml_tag | ( | $ | tag, | |
| $ | attrs = null | |||
| ) |
Construye un tag xhtml
| string | $tag nombre de etiqueta | |
| array | $attrs atributos para la etiqueta |
Nota: el parametro con nombre content nunca es utilizado como un atributo para el tag, a menos de que este se pase en el array de atributos.
Pueden tener cierre corto
Necesitan estar entre CDATA
Cargo el contenido interno para el tag
| xhtml_template | ( | $ | template = 'template' |
) |
1.5.8