Excel:...::Cell(3pm)
π Excel::Template::Element::Cell β the whole vibe
okay bestie, gather round, because this is Excel::Template::Element::Cell and it's literally the element that makes your spreadsheet not empty. It's part of the Perl docs (User Contributed Perl Documentation), and it's here to spill the tea on writing actual content into cells. π
β¨ PURPOSE β¨
To actually write stuff to the worksheet. That's it. That's the job. It puts the words in the little boxes. π
π¦ NODE NAME π¦
CELL
That's what you call it in your template, no cap.
π INHERITANCE π
ELEMENT
It inherits from ELEMENT, so it's got that family money. π
πΈ ATTRIBUTES πΈ
TEXTβ the actual text you're writing into the cell, bestie. It can be plain text, or it can be a parameter with a dollar-sign in front of the parameter name.COLβ optionally you can say which column you want this cell to live in. It can be a number (zero-based, so don't come at me with "why is the first column 0") or an offset. PeepExcel::Templatefor the whole offset-based numbering situation. π§REFβ this adds the current cell to a list of cells that can be backreferenced. Super useful when the current cell needs to be referenced by a formula. Go look atBACKREFandRANGE. β¨WIDTHβ sets the width of the column the cell is in. If you set it multiple times for the same column, the last setting wins. periodt.TYPEβ this lets you pick whichwrite_*()method gets used. By default it callswrite()and letsSpreadsheet::WriteExcelmake the right call. But maybe you wanna override it, main character behaviour. Heads up though:Excel::Templatewill not do any form of validation on what you provide. You are assumed to know what you're doing. π
The legal types (taken from Spreadsheet::WriteExcel) are:
COMMENTβ add a comment to the cellblankformulanumberstringurldate_time
other write_* methods as defined defined Spreadsheet::WriteExcel would be integrated by request. (yes, "defined defined" β I'm not fixing it, I'm not a snitch. π)
π«Ά CHILDREN π«Ά
FORMULA
π EFFECTS π
This will consume one column in the current row. One cell, one column, no sharing. π
β DEPENDENCIES β
None
π USAGE π
<cell text="Some Text Here"/>
<cell>Some other text here</cell>
<cell text="$Param2"/>
<cell>Some <var name="Param"> text here</cell>
In the above example, four cells are written out. The first two have text hard-coded. The second two have variables. The third and fourth items have another thing that should be noted. If you have text where you want a variable in the middle, you have to use the latter form. Variables within parameters are the entire parameter's value. iykyk
Please see Spreadsheet::WriteExcel for what constitutes a legal formula. Don't freestyle it, bestie, there are rules. π
π AUTHOR π
Rob Kinyon (rob.kinyon@gmail.com)
π₯ SEE ALSO π₯
ROW, VAR, FORMULA
lowkey iconic, highkey useful. go write some cells. π¦
This page came to you via perl v5.34.0, dated 2022-06-13. mwah, bye bestie! πβ¨
π¦ where this page comes from
- debian bookworm: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms