Skip to content

assignment 2#3

Open
Tyagi-Sunny wants to merge 3 commits intodevfrom
assi2
Open

assignment 2#3
Tyagi-Sunny wants to merge 3 commits intodevfrom
assi2

Conversation

@Tyagi-Sunny
Copy link
Owner

No description provided.

display: flex;
flex-direction: column;
height: 300px;
/* background-color: aquamarine; */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this commented line

display: flex;
justify-content: center;
/* align-items: center; */
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an enter - There should be proper formatting, no cluttered code would be accepted

@@ -0,0 +1,124 @@
let data = [
{
firstName: "Sunny",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put this data in json file and import from there

for (let employeeData of data) {
let row = table.insertRow(rowCount);
let cellNum = 0;
for (let j in employeeData) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable name should be descriptive, you cant use j

Array.from(staticCellData).forEach((input) => {
input.style.display = "inline";
});
document.getElementById(`normal-action-${n}`).style.display = "inline";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code is redundant, write this code in a function

function editRow(n) {
let editableRowInput = document.getElementsByClassName(`edit-info-row-${n}`);
let staticCellData = document.getElementsByClassName(`info-row-${n}`);
console.log(typeof editableRowInput);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove console.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants