-
I only see the option either VTable.register.icon("delete", {
name: "delete", //Name for action
positionType: VTable.TYPES.IconPosition.right, //How do I make it go to the center?
type: "svg",
svg: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#dc2626" d="M135.2 17.7C140.6 6.8 151.7 0 163.8 0h120.4c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64s14.3-32 32-32h96zM32 128h384v320c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64zm96 64c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16m96 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16m96 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16"/></svg>`,
width: 11,
height: 14,
cursor: "pointer",
tooltip: {
title: "Delete this record?",
placement: VTable.TYPES.Placement.left,
style: {
arrowMark: true,
color: "#FFF",
bgColor: "#000",
}
}
}); Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
fangsmile
May 24, 2024
Replies: 1 comment 3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set icon in center of cell, just like my screenshot. My answer is about
positionType
, but your question seemly as about 'tooltip.placement'.You can propose your demand as an issue!