A general chat for developers. Don't ask to ask, just ask. Here's how: https://stackoverflow.com/help/how-to-ask
I've released the alpha version of spreadsheet files importer cli: sxi
. More details may be found on the package readme:
https://github.com/Siemienik/XToolset/blob/master/packages/xlsx-import-cli/README.md
(xlsx-import-cli is part of XToolset - set of high level api tools for XLSX files).
Any feedback welcomed, any stars loved :heart: .
if((currentRow.cells[0].text[0].includes('Total')) || (currentRow.cells[0].text[0].includes('Average of'))||(currentRow.cells[0].text[0].includes('Minimum of'))||(currentRow.cells[0].text[0].includes('Maximum of'))||(currentRow.cells[0].text[0].includes('Count of')))
{
for(var i=0;i<res.columns.length;i++)
{
doc.setFontSize(10);
doc.setFontStyle('bold');
doc.setTextColor(0, 0, 0);
doc.setFillColor(255,227,185);
doc.rect(data.settings.margin.left, row.y, data.table.width, row.height, 'F');
var dataval = ($.trim(currentRow.cells[0].raw.innerText).replace(/,/g, " "));
```js
your.code(here);
```
@midhulms
here currentRow is row which given in auto table
var res1 = doc.autoTableHtmlToJson(document.getElementById(m));
var idmm=document.getElementById(n);
var clength=res1.columns.length;
var crow=res1.rows.length;
doc.autoTable(res1.columns, res1.data, {margin: {top: vy+25},pageBreak: 'auto',styles: {cellPadding: 1.5,fontSize:fsize , },fontStyle: 'bold',drawRow: function (row, data) {
currentRow1 = row;
currentRow1.height =30;
if((currentRow1.cells[0].text[0].includes('Total')) || (currentRow1.cells[0].text[0].includes('Avg'))||(currentRow1.cells[0].text[0].includes('count'))||(currentRow1.cells[0].text[0].includes('Min'))||(currentRow1.cells[0].text[0].includes('Max')))
{ 1 for(var i=0;i<res1.columns.length;i++) {
currentRow1.cells[i].styles.fontStyle = "bold";
currentRow1.cells[i].styles.font = "sans-serif" ;
currentRow1.cells[i].styles.fillColor = [243,205,204];
currentRow1.cells[1].styles.columnWidth="wrap";
currentRow1.cells[1].styles.FontSize=30;
}
}
},columnStyles: {0: {columnWidth: columnwidthrgroup},},});
got it
i just take all cell in that row thats easy
getUsers() {
const fetchPromise = fetch(apiUrl);
fetchPromise.then((response) => {
return response.json();
}).then((users) => {
return this.sharableData = users;
})
}
How can I share this data in my component ?@IamNG If you meant to ask why you can't do
let x = getUsers();
then it's because promises are "viral". Once something happens inside a promise, you always have to take it out with a promise. So you'll have to do
getUsers().then(x => doSomethingWith(x));
or
let x = await getUsers();
Keep in mind that the latter option is only available within an async
function, which must always return its result inside a promise. There is really no way to escape promises.
if (adGateMissionToDelete.length > 0) {
const refsToUpdate: any = {};
for (const firebaseId in adGateMediaRawData) {
const current = adGateMediaRawData[firebaseId];
for (const missionToDelete of adGateMissionToDelete) {
if (current.id === missionToDelete.id) {
refsToUpdate[`partners/adGateMedia/${firebaseId}`] = null;
}
}
}
}
missionToDelete.id
.
Set
and a little bit of Underscore:
const idsToDelete = new Set(_.map(adGateMissionToDelete, 'id'));
_.each(adGateMediaRawData, function(current, firebaseId) {
if (idsToDelete.has(current.id)) {
refsToUpdate[`partners/adGateMedia/${firebaseId}`] = null;
// Maybe you want to do this instead:
delete refsToUpdate[`partners/adGateMedia/${firebaseId}`];
}
});
@marcelnoack One thing that comes to mind with regard to accessibility is to perhaps take an open source web application as a case study. You could explore the application, interview users about their experiences, identify usability issues, try to fix those issues yourself, interview users again to evaluate and then draw some conclusions at the end. Depending on how much time you have, of course.
WebAssembly has mostly performance as its selling point. Perhaps you could critically evaluate this; given that JavaScript is already heavily optimized in modern browsers and that modern computers are absurdly fast, does WebAssembly add any value outside of gaming?
Those are just some ideas. I hope I could inspire you a little!