Skip to content

Commit

Permalink
Set a cell using a CellValue with row/col indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
fchorney authored and felipenoris committed Sep 17, 2019
1 parent e6baf70 commit 2127ce2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/write.jl
Expand Up @@ -296,6 +296,8 @@ function setdata!(ws::Worksheet, ref::CellRef, val::CellValue)
setdata!(ws, cell)
end

setdata!(ws::Worksheet, row::Integer, col::Integer, val::CellValue) = setdata!(ws, CellRef(row, col), val)

Base.setindex!(ws::Worksheet, v, ref) = setdata!(ws, ref, v)
Base.setindex!(ws::Worksheet, v, r, c) = setdata!(ws, r, c, v)

Expand Down

0 comments on commit 2127ce2

Please sign in to comment.