
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@strelka/slate-edit-table
Advanced tools
A Slate plugin to handle table edition.
npm install @strelka/slate-edit-table
import EditTable from '@strelka/slate-edit-table'
const plugins = [
EditTable()
]
[typeTable: String]
— type for table[typeRow: String]
— type for the rows[typeCell: String]
— type for the cells[typeDefault: String]
— type for cell content (default to paragraph
)slate-edit-table
exports utilities and changes:
utils.isSelectionInTable
plugin.utils.isSelectionInTable(state: State) => Boolean
Return true if selection is inside a table.
changes.insertTable
plugin.changes.insertTable(transform: Transform, columns: Number?, rows: Number?) => Transform
Insert a new empty table.
changes.insertRow
plugin.changes.insertRow(transform: Transform, at: Number?) => Transform
Insert a new row after the current one or at the specific index (at
).
changes.insertColumn
plugin.changes.insertColumn(transform: Transform, at: Number?) => Transform
Insert a new column after the current one or at the specific index (at
).
changes.removeTable
plugin.changes.removeTable(transform: Transform) => Transform
Remove current table.
changes.removeRow
plugin.changes.removeRow(transform: Transform, at: Number?) => Transform
Remove current row or the one at a specific index (at
).
changes.removeColumn
plugin.changes.removeColumn(transform: Transform, at: Number?) => Transform
Remove current column or the one at a specific index (at
).
changes.moveSelection
plugin.changes.moveSelection(transform: Transform, column: Number, row: Number) => Transform
Move the selection to a specific position in the table.
changes.moveSelectionBy
plugin.changes.moveSelectionBy(transform: Transform, column: Number, row: Number) => Transform
Move the selection by the given amount of columns and rows.
changes.setColumnAlign
plugin.changes.setColumnAlign(transform: Transform, align: String, at: Number) => Transform
Sets column alignment for a given column (at
), in the current table. align
defaults to center, at
is optional and defaults to current cursor position.
FAQs
A Slate plugin to handle keyboard events in tables.
We found that @strelka/slate-edit-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.