Skip to content

JS Advanced task. Add new columns and rows to the table.

License

Notifications You must be signed in to change notification settings

varseniuk/js_growth_table_DOM

 
 

Repository files navigation

  1. Replace <your_account> with your Github username in the link
  2. Follow this instructions
    • There are no tests for this task so use npm run lint command instead of npm test

Task: Growth table

Let's blow up this table!

Your task sounds simple: Do you see yellow buttons? Give the table the opportunity to grow in different directions.

Preview: Preview

Some rules:

  • Click on the button with class append-row should append a new row to the table.
  • Click on the button with class remove-row should remove the last row from the table.
  • Click on the button with class append-column should append a new column to the table.
  • Click on the button with class remove-column should remove the last column from the table.
  • The max count of rows or columns is 10.
  • The min count of rows or columns is 2.
  • If the count of columns or rows reaches maximum or minimum, set disabled the corresponding button.

As always, on JS Advanced course you do not need to change the HTML layout or CSS styles.

Examples: 10x10

2x2

3x10

About

JS Advanced task. Add new columns and rows to the table.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 46.2%
  • CSS 42.1%
  • JavaScript 11.7%