ToolJet/frontend/src/Editor/Components/Table/Link.jsx
Manish Kushare b1af7af839
Feature added to introduce Link column type in table (#6961)
* added feature to render Link element in table component

* code and logic enhancement

* bug fixed href is not updating

* removing href property
2023-07-20 14:57:39 +05:30

17 lines
290 B
JavaScript

import React from 'react';
export const Link = ({ cellValue, linkTarget }) => {
return (
<div>
<a
href={cellValue}
target={linkTarget}
onClick={(e) => {
e.stopPropagation();
}}
>
{cellValue}
</a>
</div>
);
};