table widget - #2
Conversation
| */ | ||
| public function get_title() { | ||
| return esc_html__( 'testOne', 'elementor' ); | ||
| return esc_html__( 'table', 'elementor' ); |
There was a problem hiding this comment.
I think we always use capital letters here:
return esc_html__( 'Table', 'elementor' );
| */ | ||
| public function get_keywords() { | ||
| return [ 'testOne', 'title', 'text' ]; | ||
| return [ 'table', 'title', 'text' ]; |
There was a problem hiding this comment.
I removed the 'title' and the 'text'
| 'image_alt' => esc_attr__( 'Upgrade', 'elementor' ), | ||
| 'description' => esc_html__( 'Create captivating testOnes that rotate with the Animated Headline Widget.', 'elementor' ), | ||
| 'upgrade_url' => esc_url( 'https://go.elementor.com/go-pro-testOne-widget/' ), | ||
| 'description' => esc_html__( 'Create captivating tables that rotate with the Animated Headline Widget.', 'elementor' ), |
There was a problem hiding this comment.
'description' => esc_html__( 'Create captivating tables.', 'elementor' ),
| "eslint-plugin-react": "^7.33.2", | ||
| "eslint-webpack-plugin": "^4.0.1", | ||
| "grunt": "^1.5.3", | ||
| "grunt": "^1.6.1", |
There was a problem hiding this comment.
Please revert to the orginal value. We can't update packages on the whole repository.
| "eslint-plugin-react": "^7.33.2", | ||
| "eslint-webpack-plugin": "^4.0.1", | ||
| "grunt": "^1.5.3", | ||
| "grunt": "^1.6.1", |
There was a problem hiding this comment.
Revert changes. We can't make updates here.
| "eslint-plugin-react": "^7.33.2", | ||
| "eslint-webpack-plugin": "^4.0.1", | ||
| "grunt": "^1.5.3", | ||
| "grunt": "^1.6.1", |
There was a problem hiding this comment.
Revert changes. We can't make updates here.
|
|
||
| <# if ( settings.list.length ) { #> | ||
| <tbody> | ||
| <tr> |
| <# if ( settings.list.length ) { #> | ||
| <tbody> | ||
| <tr> | ||
| <# _.each( settings.list, function( item ) { #> |
There was a problem hiding this comment.
| <# _.each( settings.list, function( item ) { #> | |
| <# _.each( settings.list, function( item ) { #> | |
| <tr> |
| <tr> | ||
| <# _.each( settings.list, function( item ) { #> | ||
| <td class="elementor-repeater-item-{{ item._id }}">{{{item.list_title}}}</td> | ||
| <# }); #> |
| <# _.each( settings.list, function( item ) { #> | ||
| <td class="elementor-repeater-item-{{ item._id }}">{{{item.list_title}}}</td> | ||
| <# }); #> | ||
| </tr> |
There was a problem hiding this comment.
| </tr> | |
| </tr> | |
| <# }); #> |
| $this->add_control( | ||
| 'rows', | ||
| [ | ||
| 'label' => esc_html__( "Rows' contents", 'elementor' ), |
There was a problem hiding this comment.
| 'label' => esc_html__( "Rows' contents", 'elementor' ), | |
| 'label' => esc_html__( 'Content rows', 'elementor' ), |
| 'rows', | ||
| [ | ||
| 'label' => esc_html__( "Rows' contents", 'elementor' ), | ||
| 'show_label' => esc_html__( true, 'elementor' ), |
There was a problem hiding this comment.
| 'show_label' => esc_html__( true, 'elementor' ), | |
| 'show_label' => true, |
| 'name' => 'column_content_one', | ||
| 'label' => esc_html__( 'Content column 1', 'elementor' ), | ||
| 'type' => \Elementor\Controls_Manager::TEXT, | ||
| 'default' => esc_html__( 'Content column 1' , 'elementor' ), |
| if ( $settings['rows'] ) { | ||
| echo '<tbody>'; | ||
| $rows = $settings['rows']; | ||
| for ($i=0; $i < count($rows) - 1; $i++) { |
There was a problem hiding this comment.
I think the rows minus 1 is causing a problem.
Elementor used always spaces in between, check the other files in the repository.
| for ($i=0; $i < count($rows) - 1; $i++) { | |
| for ( $i=0; $i < count( $rows ); $i++ ) { |
There was a problem hiding this comment.
yes I should have put <= like in the JS side
| <# if ( settings.rows.length ) { #> | ||
| <tbody> | ||
| <# let rows = settings.rows #> | ||
| <# for(let i = 0; i <= rows.length - 1; i++){ #> |
There was a problem hiding this comment.
| <# for(let i = 0; i <= rows.length - 1; i++){ #> | |
| <# for( let i = 0; i <= rows.length - 1; i++ ){ #> |
| <# let rows = settings.rows #> | ||
| <# for(let i = 0; i <= rows.length - 1; i++){ #> | ||
| <tr> | ||
| <td class="elementor-repeater-item-{{ rows[i]._id }}">{{{rows[i].column_content_one}}}</td> |
There was a problem hiding this comment.
| <td class="elementor-repeater-item-{{ rows[i]._id }}">{{{rows[i].column_content_one}}}</td> | |
| <td class="elementor-repeater-item-{{ rows[i]._id }}">{{{ rows[i].column_content_one }}}</td> |
| * | ||
| * @return array Widget promotion data. | ||
| */ | ||
| protected function get_upsale_data() { |
| } | ||
| }, | ||
| "node_modules/caniuse-lite": { | ||
| "version": "1.0.30001532", |
| $this->add_control( | ||
| 'table_head_color', | ||
| [ | ||
| 'label' => esc_html__( 'Table head Color', 'elementor' ), |
There was a problem hiding this comment.
Use labels from Trello.
Using the correct lowercase vs uppercase is important. You can't mix it randomly.
PR Checklist
PR Type
What kind of change does this PR introduce?
Summary
This PR can be summarized in the following changelog entry:
Description
An explanation of what is done in this PR
Test instructions
This PR can be tested by following these steps:
Quality assurance
Fixes #